﻿<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>Tests</title>

    <link rel="stylesheet" type="text/css" href="testFrameworkStyles/jasmine.css" />
    <script type="text/javascript" src="testFrameworkScripts/jasmine.js"></script>
    <script type="text/javascript" src="testFrameworkScripts/jasmine-html.js"></script>

    <script src="lib/jquery-2.0.2.min.js"></script>
    <script src="lib/knockout-2.2.1.js"></script>
    <script src="lib/protoClass.js"></script>
    <script src="lib/mongoLab.js"></script>
    <script src="lib/jquery-ui/ui/jquery-ui.js"></script>
    <script src="lib/kendo.web.js"></script>
    <script src="scripts/knockout.simpleGrid.js"></script>

    <script src="scripts/TripDetails.js"></script>
    <script src="scripts/testMongoDBConnection.js"></script>
    <script src="scripts/dbModule.js"></script>
    <script src="scripts/DataManagerModule.js"></script>
    <script src="scripts/GridView.js"></script>

    <script src="tests/tripDetailsTest.js"></script>
    <script src="tests/gridViewTest.js"></script>
    <script src="tests/dbModuleTest.js"></script>
</head>
<body>
    <script>
        (function () {
            var jasmineEnv = jasmine.getEnv();
            jasmineEnv.updateInterval = 1000;
            var htmlReporter = new jasmine.HtmlReporter();
            jasmineEnv.addReporter(htmlReporter);

            jasmineEnv.specFilter = function (spec) {
                return htmlReporter.specFilter(spec);
            };

            var currentWindowOnload = window.onload;
            window.onload = function () {
                if (currentWindowOnload) {
                    currentWindowOnload();
                }
                execJasmine();
            }

            function execJasmine() {
                jasmineEnv.execute();
            }
        })();
    </script>
</body>
</html>
